﻿/// <summary>
/// 
///	Author:		    Gerard Finn
///
///	Student No		X00115840
///
///	Date:			Start Date 	:- 27-03-2014
///	Modified					:-
/// 
/// File            LocalisationSettings.cs
///   
///	Description		This class is for ease of Localisation 
///	                I have only defined one local which is in the en-ie.resx file
///	                there would be a lot more in these files if multiple locations
///	                wore used and at the scale of this project this is a bit pedantic
///	                but is good practice for this to be done
///
/// </summary>

using System;
using System.Reflection;
using System.Resources;
using System.Globalization;

namespace Client
{
    class LocalisationSettings
    {
        //
        // Change the data in these ilnes to use another local
        //
        private static System.Resources.ResourceManager ResMan = new System.Resources.ResourceManager("Client.en-ie", System.Reflection.Assembly.GetExecutingAssembly());
        private static CultureInfo CulInfo = new CultureInfo("en-IE");
 
        /// <summary>
        /// 
        ///     Returns the cached ResourceManager string which matches the input variable
        ///     in localized form based on the CultureInfo for the current regon.
        ///   
        ///     This function is done as static so an instance doesnt have to be created.
        /// 
        /// </summary>
        public static String GetString( String input )
        {
            return ResMan.GetString(input, CulInfo);
        }
    }
}
